//
//  AuditType.swift
//  ANOA
//
//  Created by zwb on 2016/11/24.
//  Copyright © 2025 aowang. All rights reserved.
//

import Foundation
import ObjectMapper


struct ReCallNode: Mappable {
    /// 1 主表  2 细表  3 报表  4 附件
    var nodeId: String?
    var nodeName: String?
    
    
    
    init?(map: Map) {
        
    }
    // Mappable
    mutating func mapping(map: Map) {
        
        nodeId <- (map["nodeId"],StringTransform())
        nodeName <- map["nodeName"]
  
       
    }
    
}
 
struct StringTypeCombine {
    var conType:AuditCoTypeEnum = .content
    var pre:String = ""
    var suf:String = ""
    var perm:String = "R" // 默认只读  E编辑 H隐藏
    var must:String = "false" // 必填
    
    var moreInfo = [AuditFlowContent]()
 }

struct AuditFlowContent: Mappable {
    /// 1 主表  2 细表  3 报表  4 附件
    var type: String?
    var title: String?
    var main: String?
    var details = [String]()
    var detailArr = [StringTypeCombine]()
     var report: String?
    var mainArr = [StringTypeCombine]()
    var openx = true
    var files = [FileModel]()
    
    
    init?(map: Map) {
        
    }
    // Mappable
    mutating func mapping(map: Map) {
        
        type <- (map["type"],StringTransform())
        title <- map["title"]
        main <- map["main"]
        details <- map["details"]
        report <- map["report"]
        files <- map["files"]
    }
    
}
var VoccdTree = [VoccdTypeModel]()
enum TodoListType {
    case todo,warn
}
enum TodoStatusType {
    case todo,warn
}


